package com.kayeah82.application.avatar.qq.exception;

/**
 * @author kayeah82
 * */
public class ErrorEntry {

    public static ErrorInfo build(ErrorCode errcode) {
        return new ErrorInfo(errcode.code, errcode.description);
    }

    public static ErrorInfo build(ErrorCode errcode, Object content) {
        return new ErrorDetails(errcode.code, errcode.description, content);
    }

}
